import axios from 'axios'

export const getlist = (page, size) =>
  axios.get('http://localhost:3000/forget-password/list', {
    params: { page, size }
  })

export const add = username =>
  axios.post('http://localhost:3000/forget-password/add', { username })

export const updateStatus = (id, status) =>
  axios.post('http://localhost:3000/forget-password/update/status', {
    id,
    status
  })
